package com.sxhalo.fsms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sxhalo.fsms.domain.DeviceDefectRecord;

public interface DeviceDefectRecordMapper {
    int deleteByPrimaryKey(Integer defectId);

    int insert(DeviceDefectRecord record);

    int insertSelective(DeviceDefectRecord record);

    DeviceDefectRecord selectByPrimaryKey(Integer defectId);

    int updateByPrimaryKeySelective(DeviceDefectRecord record);

    int updateByPrimaryKey(DeviceDefectRecord record);
   
    int getMaxId();
    
    int getCount(@Param("where")String where);

    List<DeviceDefectRecord> findWhereList(@Param("where")String where, @Param("order")String order);

    List<DeviceDefectRecord> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    int deleteByWhere(@Param("where")String where);
}